<div class="row">
    <div id="five columns centered" class="panel">
        <center>
        <?php echo validation_errors(); ?>
            
        <?php echo form_open('users/newuser'); ?>
        
        <table>
            <thead>
              <tr>
                <th colspan="2" style="text-align:center;">Users</th>
              </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Name: </td>
                    <td><?php echo form_input('username',set_value('username')); ?></td>
                </tr>
                <tr>
                    <td>Password: </td>
                    <td><?php echo form_password('pass1', set_value('pass1')); ?></td>
                </tr>
                <tr>
                    <td>Confirm password: </td>
                    <td><?php echo form_password('pass2', set_value('pass2')); ?></td>
                </tr>
                <tr>
                    <td>E-mail: </td>
                    <td><?php echo form_input('email', set_value('email')); ?></td>
                </tr>
                <tr>
                    <td></td>
                    <td style="text-align: right">
                        <?php echo anchor("users", 'Cancel', 'class="nice small radius green button"'); ?>
                        
                        <?php echo form_submit(array('name'=>'save', 'class'=>'nice small radius green button', 'value'=>'Save')); ?>
                    </td>
                </tr>
            </tbody>
        </table>
        
        <?php echo form_close(); ?>
        </center>
    </div>    
</div>